package com.consumer.handsome.exception;


public enum CommonEnum {
    // 数据操作错误定义
    SUCCESS("0", "操作成功!"),
    FAILURE("1", "操作失败!"),
    PASSWORD_ERROR("1", "密码错误"),
    ACCOUNT_NOT_FOUND("1", "账号不存在"),
    PASSWORD_NOT_NULL("1", "密码不能为空"),
    TOKEN_ERROR("1", "令牌不合法"),
    NOT_FOUND("404", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误!"),
    BODY_NOT_MATCH("1001", "The requested data format is not correct"),
    INVALID_REQUEST("1002", "invalid_request"),
    AUTHENTICATION_FAILED("1003", "AuthenticationFailed");


    private String resultCode;

    private String resultMsg;

    CommonEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    public String getResultCode() {
        return resultCode;
    }

    public String getResultMsg() {
        return resultMsg;
    }

}
